-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brand new file testing #5
base: master
Are you sure you want to change the base?
Conversation
aws configure set endpoint_url https://{{ s3-storage-host }}/ | ||
``` | ||
|
||
{% cut "Пример получившихся конфигурационных файлов" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% cut "Пример получившихся конфигурационных файлов" %} | |
```yfm | |
{% cut "Пример получившихся конфигурационных файлов" %} |
```bash | ||
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" --output "awscliv2.zip" | ||
unzip awscliv2.zip | ||
sudo ./aws/install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sudo ./aws/install |
sudo ./aws/install
|
||
После закрытия диалога значение ключа будет недоступно. | ||
|
||
{% endnote %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% endnote %} | |
```yfm | |
{% endnote %} |
|
||
Для работы с {{ objstorage-name }} всегда указывайте регион — `{{ region-id }}`. Другие значения региона могут привести к ошибке авторизации. | ||
|
||
{% if region == "kz" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% if region == "kz" %} | |
```yfm | |
{% if region == "kz" %} |
|
||
- Windows {#windows} | ||
|
||
1. Скачайте [установочный файл](https://awscli.amazonaws.com/AWSCLIV2.msi) AWS CLI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Скачайте [установочный файл](https://awscli.amazonaws.com/AWSCLIV2.msi) AWS CLI. | |
1. Скачайте установочный файл AWS CLI. | |
*https://awscli.amazonaws.com/AWSCLIV2.msi* |
|
||
{% include [store-aws-key-in-lockbox](../../_includes/storage/store-aws-key-in-lockbox.md) %} | ||
|
||
{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% endif %} | |
{% endif %} |
1. [Загрузите обьект в бакет](#upload-files). | ||
1. [Получите ссылку на скачивание файла](#get-link). | ||
|
||
## Подготовьте облако к работе {#before-you-begin} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Подготовьте облако к работе {#before-you-begin} | |
## Подготовьте облако к работе { #before-you-begin } |
|
||
{% endnote %} | ||
|
||
## Создайте бакет {#the-first-bucket} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Создайте бакет {#the-first-bucket} | |
## Создайте бакет { #the-first-bucket } |
|
||
{% if region == "kz" %} | ||
|
||
```text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```text | |
```yfm | |
```text |
Текст — это правильно оформленный фрагмент. В нём нет грамматических, орфографических и пунктуационных ошибок.
|
||
{% endlist %} | ||
|
||
## Настройте сервисный аккаунт {#create-sa} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Настройте сервисный аккаунт {#create-sa} | |
## Настройте сервисный аккаунт { #create-sa } |
```text | ||
[default] | ||
region = kz1 | ||
endpoint_url = https://{{ s3-storage-host }}/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
endpoint_url = https://{{ s3-storage-host }}/ | |
```yfm | |
endpoint_url = https://{{ s3-storage-host }}/ |
В терминале выполните команду, указав имя бакета, ключ объекта и время жизни ссылки в секундах: | ||
|
||
```bash | ||
aws s3 presign s3://<имя_бакета>/<ключ_объекта> --expires-in <время_жизни> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws s3 presign s3://<имя_бакета>/<ключ_объекта> --expires-in <время_жизни> |
aws s3 presign s3://<имя_бакета>/<ключ_объекта> --expires-in <время_жизни>
|
||
{% list tabs group=instructions %} | ||
|
||
- Консоль управления {#console} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Консоль управления {#console} | |
```yfm | |
- Консоль управления { #console } |
|
||
{% list tabs group=instructions %} | ||
|
||
- AWS CLI {#aws-cli} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- AWS CLI {#aws-cli} | |
```yfm | |
- AWS CLI { #aws-cli } |
1. Задайте описание ключа и нажмите кнопку **{{ ui-key.yacloud.iam.folder.service-account.overview.popup-key_button_create }}**. | ||
1. Сохраните идентификатор и секретный ключ. | ||
|
||
{% note alert %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% note alert %} | |
```yfm | |
{% note alert %} |
Текст не содержит грамматических, орфографических и пунктуационных ошибок.
|
||
* `AWS Access Key ID` — идентификатор статического ключа, полученный ранее. | ||
* `AWS Secret Access Key` — секретный ключ, полученный ранее. | ||
* `Default region name` — регион `{{ region-id }}`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* `Default region name` — регион `{{ region-id }}`. | |
* Default region name — регион {{ region-id }}. |
|
||
В терминале выполните команду, указав имя бакета, ключ объекта и время жизни ссылки в секундах: | ||
|
||
```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```bash | |
```yfm | |
```bash |
|
||
```text | ||
[default] | ||
region = kz1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
region = kz1 |
region = kz1
aws s3 presign s3://<имя_бакета>/<ключ_объекта> --expires-in <время_жизни> | ||
``` | ||
|
||
Полученной ссылкой вы можете поделиться или использовать ее в своем сервисе для доступа к файлу. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Полученной ссылкой вы можете поделиться или использовать ее в своем сервисе для доступа к файлу. | |
Полученной ссылкой вы можете поделиться или использовать её в своём сервисе для доступа к файлу. |
|
||
{% endcut %} | ||
|
||
{% endlist %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% endlist %} | |
```yfm | |
{% endlist %} |
{% if region == "kz" %} | ||
|
||
```text | ||
[default] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[default] | |
```yfm | |
[default]``` |
|
||
{% include [access-bucket-sa](../../_includes/storage/access-bucket-sa.md) %} | ||
|
||
1. Создайте статический ключ доступа {#create-keys} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Создайте статический ключ доступа {#create-keys} | |
Создайте статический ключ доступа { #create-keys } |
aws s3 mb s3://<имя_бакета> | ||
``` | ||
|
||
Подробности см. в документе [{#T}](../operations/buckets/create.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Подробности см. в документе [{#T}](../operations/buckets/create.md). | |
Подробности см. в документе { #T } (../operations/buckets/create.md). |
|
||
* `~/.aws/config`: | ||
|
||
{% if region == "ru" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% if region == "ru" %} | |
```yfm | |
{% if region == "ru" %} |
* `~/.aws/credentials`: | ||
|
||
```text | ||
[default] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[default] | |
```yfm | |
[default]``` |
|
||
```text | ||
[default] | ||
region = {{ region-id }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
region = {{ region-id }} | |
```yfm | |
region = { { region-id } } |
|
||
{% endlist %} | ||
|
||
## Загрузите объект в бакет {#upload-files} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Загрузите объект в бакет {#upload-files} | |
## Загрузите объект в бакет { #upload-files } |
aws s3 cp <путь_к_локальному_файлу>/ s3://<имя_бакета>/<ключ_объекта> | ||
``` | ||
|
||
Подробности см. в документе [{#T}](../operations/objects/upload.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Подробности см. в документе [{#T}](../operations/objects/upload.md). | |
Подробности см. в документе { #T } (../operations/objects/upload.md). |
|
||
1. Назначьте сервисному аккаунту нужную [роль](../security/index.md#roles-list), например [storage.editor](../security/index.md#storage-editor) на каталог: | ||
|
||
1. В [консоли управления]({{ link-console-main }}) выберите нужное облако или каталог. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. В [консоли управления]({{ link-console-main }}) выберите нужное облако или каталог. | |
1. В консоли управления ({{ link-console-main }}) выберите нужное облако или каталог. |
|
||
Вы так же можете использовать существующий сервисный аккаунт. | ||
|
||
Подробнее см. в документе [{#T}](../../iam/operations/sa/create.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Подробнее см. в документе [{#T}](../../iam/operations/sa/create.md). | |
Подробнее см. в документе { #T } (../../iam/operations/sa/create.md). |
|
||
[AWS CLI](../tools/aws-cli.md) являеться одним из самых популярных инструментов для работы с {{ objstorage-name }}. В этом разделе вы научитесь работать с сервисом с помощью этого инструмента. Инструкцию о работе в консоли управления см. в документе [{#T}](../quickstart.md). | ||
|
||
Чтобы начать работу с AWS CLI: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Чтобы начать работу с AWS CLI: | |
Чтобы начать работу с AWS CLI: | |
```yfm |
|
||
{% endlist %} | ||
|
||
## Установите и настройте AWS CLI {#cli-setup} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Установите и настройте AWS CLI {#cli-setup} | |
## Установите и настройте AWS CLI {#cli-setup} |
|
||
{% list tabs group=instructions %} | ||
|
||
- AWS CLI {#aws-cli} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- AWS CLI {#aws-cli} | |
```yfm | |
- AWS CLI { #aws-cli } |
```text | ||
[default] | ||
region = {{ region-id }} | ||
endpoint_url = https://{{ s3-storage-host }}/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
endpoint_url = https://{{ s3-storage-host }}/ | |
```yfm | |
endpoint_url = https://{{ s3-storage-host }}/ |
|
||
* `~/.aws/credentials`: | ||
|
||
```text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```text | |
```yfm | |
```text |
|
||
- Linux {#linux} | ||
|
||
1. В терминале выполните команду: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. В терминале выполните команду: | |
```yfm | |
1. В терминале выполните команду: |
|
||
1. В терминалле введите команду для настройки AWS CLI: | ||
|
||
```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```bash |
yfm
bash
|
||
1. В терминале выполните команду: | ||
|
||
```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```bash |
yfm
bash
|
||
1. В [консоли управления]({{ link-console-main }}) перейдите в каталог, которому принадлежит сервисный аккаунт. | ||
1. В списке сервисов выберите **{{ ui-key.yacloud.iam.folder.dashboard.label_iam }}**. | ||
1. На панели слева выберите ![FaceRobot](../../_assets/console-icons/face-robot.svg) **{{ ui-key.yacloud.iam.label_service-accounts }}**. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. На панели слева выберите ![FaceRobot](../../_assets/console-icons/face-robot.svg) **{{ ui-key.yacloud.iam.label_service-accounts }}**. | |
1. На панели слева выберите ![FaceRobot](../../_assets/console-icons/face-robot.svg) **{{ ui-key.yacloud.iam.label_service-accounts }}**. |
|
||
1. Установите AWS CLI: | ||
|
||
{% list tabs group=operating_system %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% list tabs group=operating_system %} | |
``` yfm | |
{% list tabs group=operating_system %} |
[default] | ||
aws_access_key_id = <идентификатор_статического_ключа> | ||
aws_secret_access_key = <секретный_ключ> | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``` | |
```yfm | |
``` |
|
||
Подробности см. в документе [{#T}](../operations/objects/link-for-download.md). | ||
|
||
{% endlist %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% endlist %} | |
```yfm | |
{% endlist %} |
endpoint_url = https://{{ s3-storage-host }}/ | ||
``` | ||
|
||
{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% endif %} | |
{% endif %} |
- Консоль управления {#console} | ||
|
||
1. Перейдите в [консоль управления]({{ link-console-main }}) затем войдите в {{ yandex-cloud }} или зарегистрируйтесь, если вы еще не зарегистрированы. | ||
1. На странице [**{{ ui-key.yacloud_billing.billing.label_service }}**]({{ link-console-billing }}) убедитесь, что у вас подключен {% if audience != "internal" %}[платежный аккаунт](../../billing/concepts/billing-account.md){% else %}платежный аккаунт{% endif %} и он находится в статусе `ACTIVE` или `TRIAL_ACTIVE`. Если платежного аккаунта нет, {% if audience != "internal" %}[создайте его](../../billing/quickstart/index.md#create_billing_account){% else %}создайте его{% endif %}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. На странице [**{{ ui-key.yacloud_billing.billing.label_service }}**]({{ link-console-billing }}) убедитесь, что у вас подключен {% if audience != "internal" %}[платежный аккаунт](../../billing/concepts/billing-account.md){% else %}платежный аккаунт{% endif %} и он находится в статусе `ACTIVE` или `TRIAL_ACTIVE`. Если платежного аккаунта нет, {% if audience != "internal" %}[создайте его](../../billing/quickstart/index.md#create_billing_account){% else %}создайте его{% endif %}. | |
1. На странице [**{{ ui-key.yacloud_billing.billing.label_service }}**]({{ link-console-billing }}) убедитесь, что у вас подключён {% if audience != "internal" %}[платёжный аккаунт](../../billing/concepts/billing-account.md){% else %}платёжный аккаунт{% endif %} и он находится в статусе `ACTIVE` или `TRIAL_ACTIVE`. Если платёжного аккаунта нет, {% if audience != "internal" %}[создайте его](../../billing/quickstart/index.md#create_billing_account){% else %}создайте его{% endif %}. |
|
||
{% list tabs group=instructions %} | ||
|
||
- AWS CLI {#aws-cli} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- AWS CLI {#aws-cli} | |
```yfm | |
- AWS CLI { #aws-cli } |
1. В открывшемся списке выберите нужный нужный сервисный аккаунт. | ||
1. Нажмите кнопку **{{ ui-key.yacloud.iam.folder.service-account.overview.button_create-key-popup }}** на верхней панели. | ||
1. Выберите **{{ ui-key.yacloud.iam.folder.service-account.overview.button_create_service-account-key }}**. | ||
1. Задайте описание ключа и нажмите кнопку **{{ ui-key.yacloud.iam.folder.service-account.overview.popup-key_button_create }}**. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Задайте описание ключа и нажмите кнопку **{{ ui-key.yacloud.iam.folder.service-account.overview.popup-key_button_create }}**. | |
1. Задайте описание ключа и нажмите кнопку **{{ ui-key.yacloud.iam.folder.service-account.overview.popup-key_button_create }}**. |
В терминале выполните команду, указав имя [бакета](../concepts/bucket.md): | ||
|
||
```bash | ||
aws s3 mb s3://<имя_бакета> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws s3 mb s3://<имя_бакета> |
aws s3 mb s3://<имя_бакета>
1. Введите значения для параметров: | ||
|
||
* `AWS Access Key ID` — идентификатор статического ключа, полученный ранее. | ||
* `AWS Secret Access Key` — секретный ключ, полученный ранее. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* `AWS Secret Access Key` — секретный ключ, полученный ранее. | |
* AWS Secret Access Key — секретный ключ, полученный ранее. |
1. В терминале выполните команду: | ||
|
||
```bash | ||
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" --output "awscliv2.zip" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" --output "awscliv2.zip" |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" --output "awscliv2.zip"
|
||
```bash | ||
aws configure set endpoint_url https://{{ s3-storage-host }}/ | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``` | |
```yfm | |
``` |
@@ -0,0 +1,254 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--- | |
```yfm | |
--- |
|
||
{% endif %} | ||
|
||
{% if region == "kz" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{% if region == "kz" %} | |
```yfm | |
{% if region == "kz" %} |
В этом тексте нет грамматических, орфографических и пунктуационных ошибок.
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=ru
Description of changes: